org.eclipse.vtp.framework.common.actions
Class ScriptedAction

java.lang.Object
  extended by org.eclipse.vtp.framework.common.actions.ScriptedAction
All Implemented Interfaces:
IAction

public class ScriptedAction
extends java.lang.Object
implements IAction

An action that runs a configured script.

Author:
Lonnie Pryor

Constructor Summary
ScriptedAction(IActionContext context, IScriptingService scriptingService, ScriptConfiguration configuration)
          Creates a new ScriptedAction.
 
Method Summary
 IActionResult execute()
          Executes this action and returns its outcome.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptedAction

public ScriptedAction(IActionContext context,
                      IScriptingService scriptingService,
                      ScriptConfiguration configuration)
Creates a new ScriptedAction.

Parameters:
context - The context that contains this action.
scriptingService - The scripting service to create an engine with.
configuration - The configuration for this scripted action.
Method Detail

execute

public IActionResult execute()
Description copied from interface: IAction
Executes this action and returns its outcome.

Specified by:
execute in interface IAction
Returns:
An object representing the outcome of this action.